package com.nuc.bigdata.service.impl;

import com.nuc.bigdata.orm.entity.User;
import com.nuc.bigdata.orm.repository.UserRepository;
import com.nuc.bigdata.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author JackLuo
 * @date 2019/11/21
 */
@Service
public class UserServiceImpl implements UserService {
    private final UserRepository userRepository;

    @Autowired
    UserServiceImpl(UserRepository userRepository){
        this.userRepository = userRepository;
    }

    @Override
    public User queryByUserId(String userId) {
        return userRepository.findUserByUserId(userId);
    }
}
